.ad_panel {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 3px;
    margin-bottom: 17px;
}

.ad_panel-primary {
    background-clip: padding-box;
    border-color: #EBEBEB;
    border-radius: 3px;
}
.ad_panel-primary > .ad_panel-heading {
    background-color: #FFFFFF;
    border-color: #EBEBEB;
    color: #373E4A;
}
.ad_panel-primary {
    background-clip: padding-box;
    border-color: #EBEBEB;
    border-radius: 3px;
}
.ad_panel-primary > .ad_panel-heading {
    background-color: #FFFFFF;
    border-color: #EBEBEB;
    color: #373E4A;
}
.ad_panel-primary > .ad_panel-heading + .ad_panel-collapse .ad_panel-body {
    border-top-color: #EBEBEB;
}
.ad_panel-primary > .ad_panel-heading > .dropdown .caret {
    border-color: #373E4A rgba(0, 0, 0, 0);
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-title > a {
    color: #373E4A;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > a {
    background-clip: padding-box;
    border-radius: 3px;
    color: rgba(55, 62, 74, 0.7);
    display: inline-block;
    line-height: 1;
    padding: 4px 2px;
    text-align: center;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > a.bg {
    background-color: #F8F8F8;
    margin-left: 5px;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > a.bg:hover {
    background-color: #FFFFFF;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > a i {
    display: inline-block;
    margin: 0;
    padding: 0;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs {
    border-bottom: 1px solid #EBEBEB;
    padding-top: 5px;
    position: relative;
    top: 1px;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs > li {
    background-color: rgba(0, 0, 0, 0);
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs > li > a {
    background-clip: padding-box;
    background-color: #EBEBEB;
    border-color: #EBEBEB;
    border-radius: 3px 3px 0 0;
    color: rgba(55, 62, 74, 0.5);
    font-size: 12px;
    padding: 8px 10px;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs > li > a > i {
    font-size: 14px;
    line-height: 1;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs > li.active > a {
    background-color: #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    color: #373E4A;
}
.ad_panel-primary > .ad_panel-heading > .ad_panel-options > .nav-tabs > li.active > a > i {
    color: #373E4A;
}
.ad_panel-primary > .ad_panel-footer {
    background-color: #FFFFFF;
    border-top-color: #EBEBEB;
    color: #373E4A;
}
.ad_panel-primary > .ad_panel-footer + .ad_panel-collapse .ad_panel-body {
    border-bottom-color: #EBEBEB;
}
.ad_panel-primary > .ad_panel-body + .ad_panel-body {
    border-top-color: #EBEBEB;
}
.ad_panel-body {
    padding: 15px;
    position: relative;
}
.ad_panel-body:before, .ad_panel-body:after {
    content: " ";
    display: table;
}
.ad_panel-body:after {
    clear: both;
}
.ad_panel-body:before, .ad_panel-body:after {
    content: " ";
    display: table;
}
.ad_panel-body:after {
    clear: both;
}
.ad_panel-body.no-padding {
    padding: 0;
}

.ad_panel-heading {
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.ad_panel-heading:before, .ad_panel-heading:after {
    content: " ";
    display: table;
}
.ad_panel-heading:after {
    clear: both;
}
.ad_panel-heading:before, .ad_panel-heading:after {
    content: " ";
    display: table;
}
.ad_panel-heading:after {
    clear: both;
}
.ad_panel-heading > .dropdown .dropdown-toggle {
    color: inherit;
}
.ad_panel-heading > .ad_panel-title {
    float: left;
    padding: 10px 15px;
}
.ad_panel-heading > .ad_panel-title > * {
    margin: 0;
}
.ad_panel-heading > .ad_panel-title > span {
    font-weight: normal;
}
.ad_panel-heading > .ad_panel-options {
    float: right;
    padding-right: 15px;
}
.ad_panel-heading > .ad_panel-options > a {
    margin-top: 10px;
}
.ad_panel-heading > .ad_panel-options > a[rel="reload"] > i {
    transform-origin: 50% 50% 0;
}
.ad_panel-heading > .ad_panel-options > a[rel="collapse"] > i {
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-heading > .ad_panel-options > .nav-tabs {
    margin-bottom: 0;
    margin-top: 0;
}
.ad_panel-heading > .ad_panel-options > .nav-tabs > li {
    margin-right: 4px;
}
.ad_panel-heading > .ad_panel-options > .nav-tabs > li:last-child {
    margin-right: 0;
}


.ad_panel-danger {
    background-clip: padding-box;
    border-color: #FFAFBD;
    border-radius: 3px;
}
.ad_panel-danger > .ad_panel-heading {
    background-color: #FFC9C9;
    border-color: #FFAFBD;
    color: #AC1818;
}
.ad_panel-danger > .ad_panel-heading + .ad_panel-collapse .ad_panel-body {
    border-top-color: #FFAFBD;
}
.ad_panel-danger > .ad_panel-heading > .dropdown .caret {
    border-color: #AC1818 rgba(0, 0, 0, 0);
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-title > a {
    color: #AC1818;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > a {
    background-clip: padding-box;
    border-radius: 3px;
    color: rgba(172, 24, 24, 0.7);
    display: inline-block;
    line-height: 1;
    padding: 4px 2px;
    text-align: center;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > a.bg {
    background-color: #FF96A7;
    margin-left: 5px;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > a.bg:hover {
    background-color: #FFA5B4;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > a i {
    display: inline-block;
    margin: 0;
    padding: 0;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs {
    border-bottom: 1px solid #FFAFBD;
    padding-top: 5px;
    position: relative;
    top: 1px;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li {
    background-color: rgba(0, 0, 0, 0);
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li > a {
    background-clip: padding-box;
    background-color: #FFAFBD;
    border-color: #FFAFBD;
    border-radius: 3px 3px 0 0;
    color: rgba(172, 24, 24, 0.5);
    font-size: 12px;
    padding: 8px 10px;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li > a > i {
    font-size: 14px;
    line-height: 1;
    transition: all 300ms ease-in-out 0s;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li.active > a {
    background-color: #FFC9C9;
    border-bottom: 1px solid #FFC9C9;
    color: #AC1818;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li.active > a > i {
    color: #AC1818;
}
.ad_panel-danger > .ad_panel-footer {
    background-color: #FFC9C9;
    border-top-color: #FFAFBD;
    color: #AC1818;
}
.ad_panel-danger > .ad_panel-footer + .ad_panel-collapse .ad_panel-body {
    border-bottom-color: #FFAFBD;
}
.ad_panel-danger > .ad_panel-body + .ad_panel-body {
    border-top-color: #FFAFBD;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li > a {
    background-color: #FF7C7C;
}
.ad_panel-danger > .ad_panel-heading > .ad_panel-options > .nav-tabs > li.active > a {
    background-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}


/*-------------------write by myown--------------------*/

.block-container{
    position: relative;
    /*display: block;*/
    min-height: 50px;
    border: 1px solid #FFAFBD;

}

.block-container:hover .action-panel{
    background-color: #FFC9C9;
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    /*  height:40px;
      width:200px;*/
}

.block-container .action-panel{
    padding: 5px;
    display: none;
    background: #efefef;
    z-index:9999;
    position: absolute;
    top: 1px;
    left: 1px;
    /*height:40px;*/
    /*width:200px;*/
    opacity:0.8;
    filter: alpha(opacity=80);
    zoom:1;
}

.block-container .block-view{
    display: block;
    border: 2px solid #f2f2f2;
    background-color: #ffffff;
    min-width: 60px;
    min-height: 60px;
    z-index:1;
}

.block-container .edit-panel{
    display: none;
    padding: 5px;
}

.block-container .edit-panel .edit-editor{

}

.block-container .edit-panel .edit-control{
    margin-top: 7px;
    text-align: right;
}

